Test Case
Overview
test_case
crate provides procedural macro attribute that generates parametrized test instances.
Getting Started
Crate has to be added as a dependency to Cargo.toml
:
[]
= "2.2.2"
and imported to the scope of a block where it's being called
(since attribute name collides with rust's built-in custom_test_frameworks
) via:
use test_case;
Example usage:
Output from cargo test
for this example:
; ; ; ;
Documentation
Most up to date documentation is available in our wiki.
License
Licensed under of MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
Contributing
Project roadmap is available at link. All contributions are welcome.
Recommended tools:
cargo readme
- to regenerate README.md based on template and lib.rs commentscargo insta
- to review test snapshotscargo edit
- to add/remove dependenciescargo fmt
- to format codecargo clippy
- for all insights and tipscargo fix
- for fixing warnings